package com.zbf.dao;

import com.zbf.entity.MyUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/30  16:12
 * 描述:
 */
public interface MyUserMongoDao extends MongoRepository<MyUser,String> {

    public List<MyUser> findByIdEquals(Long id);

    public List<MyUser> findByUserNameLikeAndIdEquals(String userName,Long id);

    public Page<MyUser> findByAddressContainsAndUserNameLike(String address, String userName, Pageable pageable);

}
